package com.marvels.common.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 登录用户
 * 
 * @author hm
 *
 */

public class UserDTO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -378702757888929683L;
	
	// 主键
	private Integer userId;
	// 组织机构代码
	private String orgCode;
	// 用户代码
	private String userCode;
	// 用户名
	private String userName;
	// 用户名
	private String userPwd;
	// 真实姓名
	private String realName;
	//岗位编号
    private String positionCode;
    private String positionName;
	//登录令牌
	private String token;
	//角色
	private List<String> roleCodes;
	//最近一次登录ip
	private String lastLoginIp;
	//最近一次登录时间
	private Date lastLoginTime;
	//登录唯一标识
	private String loginUUid;
	private Map<String,String> authCodeMap;
	
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public List<String> getRoleCodes() {
		return roleCodes;
	}

	public void setRoleCodes(List<String> roleCodes) {
		this.roleCodes = roleCodes;
	}

	public String getPositionCode() {
		return positionCode;
	}

	public void setPositionCode(String positionCode) {
		this.positionCode = positionCode;
	}

	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	
	public Map<String, String> getAuthCodeMap() {
		return authCodeMap;
	}

	public void setAuthCodeMap(Map<String, String> authCodeMap) {
		this.authCodeMap = authCodeMap;
	}

	
	public String getLoginUUid() {
		return loginUUid;
	}

	public void setLoginUUid(String loginUUid) {
		this.loginUUid = loginUUid;
	}

	@Override
	public String toString() {
		return "UserDTO [userId=" + userId + ", orgCode=" + orgCode + ", userCode=" + userCode + ", userName="
				+ userName + ", userPwd=" + userPwd + ", realName=" + realName + ", positionCode=" + positionCode
				+ ", positionName=" + positionName + ", token=" + token + ", roleCodes=" + roleCodes + "]";
	}

}
